import {
	request
} from "@/utils/request.js"

// 查询货柜
export function queryCabinetList(data) {
	return request({
		url: '/campus/cabinet/wx/queryList',
		method: 'get',
		data
	})
}

//查询格子
export function queryGoodsList(id) {
	return request({
		url: '/campus/compartment/wx/' + id,
	})
}

export function queryGoodsSearch(data) {
	return request({
		url: '/campus/order/wx/list',
		method: 'get',
		data
	})
}

//订单详情
export function detailOrder(id) {
  return request({
    url: '/campus/order/wx/' + id,
    method: 'get',
  })
}

//预定
export function reserveOrder(data) {
  return request({
    url: '/campus/order/wx/reserve',
    method: 'post',
    data: data
  })
}

//下架
export function downOrder(data) {
  return request({
    url: '/campus/order/wx/down',
    method: 'post',
    data: data
  })
}

//添加订单
export function addOrder(data) {
  return request({
    url: '/campus/order/wx/add',
    method: 'post',
    data: data
  })
}

// post 接口接口2
export function port(data) {
	return request({
		url: '',
		method: "",
		data
	})
}